<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
    <title>ShellCheck: More-Installation-Guides – Installing ShellCheck on CentOS 6 / RHEL6</title>
    <link rel="stylesheet" href="css/bootstrap.min.css" />
  </head>
  <body style="margin-left: auto; margin-right: auto; max-width: 800px">
    <h1>More-Installation-Guides – ShellCheck Wiki</h1>
    <a href="https://github.com/koalaman/shellcheck/wiki/More-Installation-Guides">See this page on GitHub</a>
    <p style="display: none"><a href="index.html">Sitemap</a></p>
    <hr />
    <h2 id="installing-shellcheck-on-centos-6--rhel6">Installing ShellCheck
on CentOS 6 / RHEL6</h2>
<p>Here are <a
href="https://github.com/koalaman/shellcheck/issues/427">contributed
instructions</a> for installing ShellCheck on CentOS 6:</p>
<div class="sourceCode" id="cb1"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb1-1"><a href="More-Installation-Guides.html#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="co"># Haskell Deps. Or read on and use that source in the wiki.</span></span>
<span id="cb1-2"><a href="More-Installation-Guides.html#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="ex">yum</span> <span class="at">-y</span> groupinstall <span class="st">&quot;Development Tools&quot;</span></span>
<span id="cb1-3"><a href="More-Installation-Guides.html#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="ex">yum</span> <span class="at">-y</span> install gmp-devel zlib <span class="co"># may need epel; zlib as shellcheck builddep reported in #519</span></span>
<span id="cb1-4"><a href="More-Installation-Guides.html#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="fu">sudo</span> ln <span class="at">-s</span> libgmp.so.3 /usr/lib64/libgmp.so.10 <span class="co"># </span><span class="al">HACK</span></span>
<span id="cb1-5"><a href="More-Installation-Guides.html#cb1-5" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-6"><a href="More-Installation-Guides.html#cb1-6" aria-hidden="true" tabindex="-1"></a><span class="co"># Get haskell. https://www.haskell.org/platform/linux.html#linux-generic</span></span>
<span id="cb1-7"><a href="More-Installation-Guides.html#cb1-7" aria-hidden="true" tabindex="-1"></a><span class="co"># Or follow https://wiki.haskell.org/GNU/Linux#RHEL.2C_CentOS.2C_Scientific_Linux_5_and_6_and_Fedora_16_and_17.</span></span>
<span id="cb1-8"><a href="More-Installation-Guides.html#cb1-8" aria-hidden="true" tabindex="-1"></a><span class="bu">pushd</span> <span class="st">&quot;</span><span class="va">$(</span><span class="fu">mktemp</span> <span class="at">-d</span><span class="va">)</span><span class="st">&quot;</span> <span class="co"># prevent tarball from messing wherever you are up</span></span>
<span id="cb1-9"><a href="More-Installation-Guides.html#cb1-9" aria-hidden="true" tabindex="-1"></a><span class="fu">wget</span> https://haskell.org/platform/download/7.10.2/haskell-platform-7.10.2-a-unknown-linux-deb7.tar.gz</span>
<span id="cb1-10"><a href="More-Installation-Guides.html#cb1-10" aria-hidden="true" tabindex="-1"></a><span class="fu">tar</span> xvzf haskell-platform-7.10.2-a-unknown-linux-deb7.tar.gz</span>
<span id="cb1-11"><a href="More-Installation-Guides.html#cb1-11" aria-hidden="true" tabindex="-1"></a><span class="ex">./install-haskell-platform.sh</span></span>
<span id="cb1-12"><a href="More-Installation-Guides.html#cb1-12" aria-hidden="true" tabindex="-1"></a><span class="bu">popd</span></span>
<span id="cb1-13"><a href="More-Installation-Guides.html#cb1-13" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-14"><a href="More-Installation-Guides.html#cb1-14" aria-hidden="true" tabindex="-1"></a><span class="co"># do the normal cabal thing</span></span>
<span id="cb1-15"><a href="More-Installation-Guides.html#cb1-15" aria-hidden="true" tabindex="-1"></a><span class="ex">cabal</span> update</span>
<span id="cb1-16"><a href="More-Installation-Guides.html#cb1-16" aria-hidden="true" tabindex="-1"></a><span class="ex">cabal</span> install shellcheck</span>
<span id="cb1-17"><a href="More-Installation-Guides.html#cb1-17" aria-hidden="true" tabindex="-1"></a><span class="fu">cp</span> ~/.cabal/bin/shellcheck /usr/local/bin</span></code></pre></div>
    <hr />
    <p style='font-size: 80%'><a href="../index.html">ShellCheck</a> is a static analysis tool for shell scripts. This page is part of its documentation.</p>
  </body>
</html>


